home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 October: Technology Seed / ADC Seed CD - October 1999.toast / FireWire / FireWire_2.1_SDK_DR3 / Source / SBP2 / MakeFile < prev   
Encoding:
Makefile  |  1999-05-17  |  10.6 KB  |  365 lines  |  [TEXT/MPS ]

  1. #
  2. #    File:        MakeFile
  3. #
  4. #    Contains:    Build rules for SBP-2 sample code
  5. #
  6. #    Version:    1.0
  7. #
  8. #    Copyright:    © 1998 by Apple Computer, Inc., all rights reserved.
  9. #
  10. #    File Ownership:
  11. #
  12. #        DRI:                Eric Anderson
  13. #
  14. #        Other Contact:        
  15. #
  16. #        Technology:            FireWire
  17. #
  18. #    Writers:
  19. #
  20. #        (DCB)    Clinton Bauder
  21. #        (EA)    Eric Anderson (ewa)
  22. #
  23. #    Change History (most recent first):
  24. #
  25. #       <FW4>    12/19/98    DCB        More cleanup for SDK.
  26. #       <FW3>    12/18/98    DCB        Add disk driver.
  27. #       <FW2>     9/20/98    EA        Filled in header comments.
  28. #       <FW1>     9/20/98    EA        first checked in
  29. #
  30.  
  31.  
  32. ################################################################################
  33. #
  34. # Define some directories
  35. #
  36.  
  37. SBP2RootDir                    =    :
  38.  
  39. FWSampleDir                    =    {SBP2RootDir}::
  40.  
  41. FWInterfaces                =    {FWSampleDir}Interfaces:
  42. FWLibraries                    =    {FWSampleDir}Libraries:
  43. SBP2Interfaces                =    {SBP2RootDir}Interfaces:
  44.  
  45. FWSBP2DriverDir                =    {SBP2RootDir}FWSBP2Driver:
  46. FWSBP2DiskDriverDir            =    {SBP2RootDir}FWSBP2DiskDriver:
  47. SampleSBP2FamilyDir            =    {SBP2RootDir}SampleSBP2Family:
  48. SBP2DemoAppDir                =    {SBP2RootDir}SBP2DemoApp:
  49.  
  50. BuildResultsDir                =    {FWSampleDir}BuildResults:
  51. ObjectsDir                    =    {BuildResultsDir}Objects:
  52. ApplicationsDir                =    {BuildResultsDir}Applications:
  53. ExtensionsDir                =    {BuildResultsDir}Extensions:
  54. LibsDir                        =    {BuildResultsDir}Libraries:
  55.  
  56. ################################################################################
  57. #
  58. # Define version info
  59. #
  60.  
  61. FWVersion                    =    1
  62. FWRevision                    =    3
  63. FWBuildStage                =    development
  64. FWBuildNumber                =    1
  65. FWShortVersionString        =    '"1.3d1"'
  66. FWLongVersionString            =    '"1.3d1, © 1995-98 Apple Computer, Inc."'
  67.  
  68.  
  69. ################################################################################
  70. #
  71. # Define stuff for PowerPC compilation
  72. #
  73.  
  74. MrCOptions                    =    -opt speed                                    ∂
  75.                                 -w 2,7,35                                    ∂
  76.                                 -d TRUE=1                                    ∂
  77.                                 -d FALSE=0                                    ∂
  78.                                 -i "{CIncludes}"
  79.  
  80. CPPCOptions                    =    {MrCOptions}
  81.  
  82. AsmPPC                        =    PPCAsm
  83.  
  84. AsmPPCOptions                =    -dialect PowerPC                            ∂
  85.                                 -o {Targ}
  86.  
  87. CPPC                        =    MrC
  88.  
  89. LinkPPC                        =    PPCLink
  90.  
  91.  
  92. ################################################################################
  93. #
  94. # Define stuff for rez
  95. #
  96.  
  97. RezOptions                    =    -d FWVersion={FWVersion}                    ∂
  98.                                 -d FWRevision={FWRevision}                    ∂
  99.                                 -d FWBuildStage={FWBuildStage}                ∂
  100.                                 -d FWBuildNumber={FWBuildNumber}            ∂
  101.                                 -d FWShortVersionString={FWShortVersionString}    ∂
  102.                                 -d ETO_BUILD=1                                ∂
  103.                                 -d FWLongVersionString={FWLongVersionString}
  104.  
  105.  
  106. ################################################################################
  107. #
  108. # Sample SBP2 family library.
  109. #
  110.  
  111. "{ObjectsDir}SampleSBP2Family.c.o"    ƒ                                        ∂
  112.                             "{SampleSBP2FamilyDir}SampleSBP2Family.c"        ∂
  113.                             "{SBP2Interfaces}SampleSBP2.h"                    ∂
  114.                             "{SBP2Interfaces}SampleSBP2Priv.h"                ∂
  115.                             "{SampleSBP2FamilyDir}SampleSBP2Expert.h"
  116.     {CPPC}                                                                    ∂
  117.         "{SampleSBP2FamilyDir}SampleSBP2Family.c"                             ∂
  118.         -i "{FWInterfaces}"                                                    ∂
  119.         -i "{SBP2Interfaces}"                                                ∂
  120.         -i "{SampleSBP2FamilyDir}"                                            ∂
  121.         {CPPCOptions}                                                        ∂
  122.         -o {Targ}
  123.  
  124. "{ExtensionsDir}SampleSBP2Family"    ƒƒ                                        ∂
  125.                             "{ObjectsDir}SampleSBP2Family.c.o"                ∂
  126.                             "{SampleSBP2FamilyDir}SampleSBP2Family.exp"
  127.     {LinkPPC}                                                                ∂
  128.         -t 'shlb'                                                            ∂
  129.         -c 'SSBP'                                                            ∂
  130.         -xm sharedlibrary                                                    ∂
  131.         -share global                                                        ∂
  132.         -w                                                                     ∂
  133.         -init InitializeSBPFamily                                            ∂
  134.         -term TerminateSBPFamily                                            ∂
  135.         -@export "{SampleSBP2FamilyDir}SampleSBP2Family.exp"                ∂
  136.         "{ObjectsDir}SampleSBP2Family.c.o"                                    ∂
  137.         "{SharedLibraries}InterfaceLib"                                        ∂
  138.         "{SharedLibraries}StdCLib"                                            ∂
  139.         "{SharedLibraries}DriverServicesLib"                                ∂
  140.         "{SharedLibraries}NameRegistryLib"                                    ∂
  141.         "{SharedLibraries}DriverLoaderLib"                                    ∂
  142.         "{FWLibraries}GenericDriverFamily"                                    ∂
  143.         "{PPCLibraries}PPCCRuntime.o"                                        ∂
  144.         -o {Targ}
  145.  
  146. "{ExtensionsDir}SampleSBP2Family"    ƒƒ                                        ∂
  147.                             "{SampleSBP2FamilyDir}SampleSBP2Family.r"        ∂
  148.                             "{SBP2RootDir}MakeFile"
  149.     Rez                                                                        ∂
  150.         {RezOptions}                                                        ∂
  151.         "{SampleSBP2FamilyDir}SampleSBP2Family.r"                            ∂
  152.         -a                                                                    ∂
  153.         -o {Targ}
  154.  
  155. "{LibsDir}SampleSBP2Family"    ƒƒ                                            ∂
  156.                             "{ExtensionsDir}SampleSBP2Family"
  157.     Duplicate                                                                ∂
  158.         -y                                                                    ∂
  159.         "{ExtensionsDir}SampleSBP2Family"                                    ∂
  160.         {Targ}
  161.  
  162. "{ObjectsDir}SampleSBP2Expert.c.o"    ƒ                                        ∂
  163.                             "{SampleSBP2FamilyDir}SampleSBP2Expert.c"        ∂
  164.                             "{SBP2Interfaces}SampleSBP2.h"                    ∂
  165.                             "{SBP2Interfaces}SampleSBP2Priv.h"
  166.     {CPPC}                                                                    ∂
  167.         "{SampleSBP2FamilyDir}SampleSBP2Expert.c"                             ∂
  168.         -i "{FWInterfaces}"                                                    ∂
  169.         -i "{SBP2Interfaces}"                                                ∂
  170.         -i "{SampleSBP2FamilyDir}"                                            ∂
  171.         {CPPCOptions}                                                        ∂
  172.         -o {Targ}
  173.  
  174. "{ExtensionsDir}SampleSBP2Expert"    ƒƒ                                        ∂
  175.                             "{ObjectsDir}SampleSBP2Expert.c.o"                ∂
  176.                             "{SampleSBP2FamilyDir}SampleSBP2Expert.exp"        ∂
  177.                             "{LibsDir}SampleSBP2Family"
  178.     {LinkPPC}                                                                ∂
  179.         -t 'gdfx'                                                            ∂
  180.         -c 'SSBP'                                                            ∂
  181.         -xm sharedlibrary                                                    ∂
  182.         -share global                                                        ∂
  183.         -w                                                                     ∂
  184.         -term SBPExpertTerminate                                            ∂
  185.         -@export "{SampleSBP2FamilyDir}SampleSBP2Expert.exp"                ∂
  186.         "{ObjectsDir}SampleSBP2Expert.c.o"                                    ∂
  187.         "{SharedLibraries}InterfaceLib"                                        ∂
  188.         "{SharedLibraries}StdCLib"                                            ∂
  189.         "{SharedLibraries}DriverServicesLib"                                ∂
  190.         "{SharedLibraries}NameRegistryLib"                                    ∂
  191.         "{LibsDir}SampleSBP2Family"                                            ∂
  192.         "{PPCLibraries}PPCCRuntime.o"                                        ∂
  193.         -o {Targ}
  194.  
  195. "{ExtensionsDir}SampleSBP2Expert"    ƒƒ                                        ∂
  196.                             "{SampleSBP2FamilyDir}SampleSBP2Expert.r"        ∂
  197.                             "{SBP2RootDir}MakeFile"
  198.     Rez                                                                        ∂
  199.         {RezOptions}                                                        ∂
  200.         "{SampleSBP2FamilyDir}SampleSBP2Expert.r"                            ∂
  201.         -a                                                                    ∂
  202.         -o {Targ}
  203.  
  204. SampleSBP2Family    ƒ                                                        ∂
  205.                             "{ExtensionsDir}SampleSBP2Family"                ∂
  206.                             "{LibsDir}SampleSBP2Family"                        ∂
  207.                             "{ExtensionsDir}SampleSBP2Expert"
  208.  
  209.  
  210. ################################################################################
  211. #
  212. # FireWire sample SBP2 driver
  213. #
  214.  
  215. "{ObjectsDir}FWSBP2Driver.c.o"    ƒ                                            ∂
  216.                             "{FWSBP2DriverDir}FWSBP2Driver.c"                ∂
  217.                             "{FWInterfaces}FireWire.h"                        ∂
  218.                             "{FWInterfaces}FireWireSBP2.h"                    ∂
  219.                             "{FWSBP2DriverDir}FWSBP2Driver.h"
  220.     {CPPC}                                                                    ∂
  221.         "{FWSBP2DriverDir}FWSBP2Driver.c"                                     ∂
  222.         -i "{FWInterfaces}"                                                    ∂
  223.         -i "{SBP2Interfaces}"                                                ∂
  224.         -i "{FWSBP2DriverDir}"                                                ∂
  225.         {CPPCOptions}                                                        ∂
  226.         -o {Targ}
  227.  
  228. "{ExtensionsDir}FWSBP2Driver"    ƒƒ                                            ∂
  229.                             "{ObjectsDir}FWSBP2Driver.c.o"                    ∂
  230.                             "{FWSBP2DriverDir}FWSBP2Driver.exp"
  231.     {LinkPPC}                                                                ∂
  232.         -t 'ndrv'                                                            ∂
  233.         -c 'fw  '                                                            ∂
  234.         -xm sharedlibrary                                                    ∂
  235.         -w                                                                     ∂
  236.         -@export "{FWSBP2DriverDir}FWSBP2Driver.exp"                        ∂
  237.         "{ObjectsDir}FWSBP2Driver.c.o"                                        ∂
  238.         "{SharedLibraries}InterfaceLib"                                        ∂
  239.         "{SharedLibraries}StdCLib"                                            ∂
  240.         "{SharedLibraries}NameRegistryLib"                                    ∂
  241.         "{SharedLibraries}DriverServicesLib"                                ∂
  242.         "{SharedLibraries}PCILib"                                            ∂
  243.         "{FWLibraries}FWServicesLib"                                        ∂
  244.         "{PPCLibraries}PPCCRuntime.o"                                        ∂
  245.         "{SharedLibraries}MathLib"                                            ∂
  246.         -o {Targ}
  247.  
  248. "{ExtensionsDir}FWSBP2Driver"    ƒƒ                                            ∂
  249.                             "{FWSBP2DriverDir}FWSBP2Driver.r"                ∂
  250.                             "{SBP2RootDir}MakeFile"
  251.     Rez                                                                        ∂
  252.         {RezOptions}                                                        ∂
  253.         "{FWSBP2DriverDir}FWSBP2Driver.r"                                    ∂
  254.         -a                                                                    ∂
  255.         -o {Targ}
  256.  
  257.  
  258. FWSBP2Driver    ƒ                                                            ∂
  259.                         "{ExtensionsDir}FWSBP2Driver"
  260.  
  261.  
  262. ################################################################################
  263. #
  264. # FireWire sample SBP2 disk driver
  265. #
  266.  
  267. "{ObjectsDir}FWSBP2DiskDriver.c.o"    ƒ                                        ∂
  268.                             "{FWSBP2DiskDriverDir}FWSBP2DiskDriver.c"        ∂
  269.                             "{FWInterfaces}FireWire.h"                        ∂
  270.                             "{FWInterfaces}FireWireSBP2.h"                    ∂
  271.                             "{FWSBP2DiskDriverDir}FWSBP2DiskDriver.h"
  272.     {CPPC}                                                                    ∂
  273.         "{FWSBP2DiskDriverDir}FWSBP2DiskDriver.c"                             ∂
  274.         -i "{FWInterfaces}"                                                    ∂
  275.         -i "{SBP2Interfaces}"                                                ∂
  276.         -i "{FWSBP2DiskDriverDir}"                                            ∂
  277.         {CPPCOptions}                                                        ∂
  278.         -o {Targ}
  279.  
  280. "{ExtensionsDir}FWSBP2DiskDriver"    ƒƒ                                        ∂
  281.                             "{ObjectsDir}FWSBP2DiskDriver.c.o"                ∂
  282.                             "{FWSBP2DiskDriverDir}FWSBP2DiskDriver.exp"
  283.     {LinkPPC}                                                                ∂
  284.         -t 'ndrv'                                                            ∂
  285.         -c 'fw  '                                                            ∂
  286.         -xm sharedlibrary                                                    ∂
  287.         -w                                                                     ∂
  288.         -@export "{FWSBP2DiskDriverDir}FWSBP2DiskDriver.exp"                ∂
  289.         "{ObjectsDir}FWSBP2DiskDriver.c.o"                                    ∂
  290.         "{SharedLibraries}InterfaceLib"                                        ∂
  291.         "{SharedLibraries}StdCLib"                                            ∂
  292.         "{SharedLibraries}NameRegistryLib"                                    ∂
  293.         "{SharedLibraries}DriverServicesLib"                                ∂
  294.         "{SharedLibraries}PCILib"                                            ∂
  295.         "{FWLibraries}FWServicesLib"                                        ∂
  296.         "{PPCLibraries}PPCCRuntime.o"                                        ∂
  297.         "{SharedLibraries}MathLib"                                            ∂
  298.         -o {Targ}
  299.  
  300. "{ExtensionsDir}FWSBP2DiskDriver"    ƒƒ                                        ∂
  301.                             "{FWSBP2DiskDriverDir}FWSBP2DiskDriver.r"            ∂
  302.                             "{SBP2RootDir}MakeFile"
  303.     Rez                                                                        ∂
  304.         {RezOptions}                                                        ∂
  305.         "{FWSBP2DiskDriverDir}FWSBP2DiskDriver.r"                            ∂
  306.         -a                                                                    ∂
  307.         -o {Targ}
  308.  
  309.  
  310. FWSBP2DiskDriver    ƒ                                                            ∂
  311.                         "{ExtensionsDir}FWSBP2DiskDriver"
  312.  
  313.  
  314. ################################################################################
  315. #
  316. # SBP Demo Application
  317. #
  318.  
  319. "{ObjectsDir}SBP2DemoApp.c.o"    ƒ                                            ∂
  320.                             "{SBP2DemoAppDir}SBP2DemoApp.c"                    ∂
  321.                             "{SBP2DemoAppDir}SBP2DemoApp.h"
  322.     {CPPC}                                                                    ∂
  323.         "{SBP2DemoAppDir}SBP2DemoApp.c"                                     ∂
  324.         -i "{FWInterfaces}"                                                    ∂
  325.         -i "{SBP2Interfaces}"                                                ∂
  326.         -i "{SBP2DemoAppDir}"                                                ∂
  327.         {CPPCOptions}                                                        ∂
  328.         -o {Targ}
  329.  
  330. "{ApplicationsDir}SBP2DemoApp"    ƒƒ                                            ∂
  331.                             "{ObjectsDir}SBP2DemoApp.c.o"                    ∂
  332.                             "{SBP2DemoAppDir}SBP2DemoApp.exp"
  333.     {LinkPPC}                                                                ∂
  334.         -w                                                                     ∂
  335.         -@export "{SBP2DemoAppDir}SBP2DemoApp.exp"                            ∂
  336.         -main SBP2DemoMain                                                    ∂
  337.         "{ObjectsDir}SBP2DemoApp.c.o"                                        ∂
  338.         "{SharedLibraries}InterfaceLib"                                        ∂
  339.         "{SharedLibraries}StdCLib"                                            ∂
  340.         "{LibsDir}SampleSBP2Family"                                            ∂
  341.         "{PPCLibraries}PPCCRuntime.o"                                        ∂
  342.         -o {Targ}
  343.  
  344. "{ApplicationsDir}SBP2DemoApp"    ƒƒ                                            ∂
  345.                             "{SBP2DemoAppDir}SBP2DemoApp.rsrc"                ∂
  346.                             "{SBP2RootDir}MakeFile"
  347.     DeRez                                                                    ∂
  348.         "{SBP2DemoAppDir}SBP2DemoApp.rsrc"                                    ∂
  349.         > "{ObjectsDir}SBP2DemoApp.r"
  350.     Rez                                                                        ∂
  351.         {RezOptions}                                                        ∂
  352.         "{ObjectsDir}SBP2DemoApp.r"                                            ∂
  353.         -a                                                                    ∂
  354.         -o {Targ}
  355.  
  356. SBP2DemoApp    ƒ                                                                ∂
  357.                         "{ApplicationsDir}SBP2DemoApp"
  358.  
  359.  
  360. SBP2    ƒ                                                                    ∂
  361.                         SampleSBP2Family                                    ∂
  362.                         FWSBP2Driver                                        ∂
  363.                         FWSBP2DiskDriver                                    ∂
  364.                         SBP2DemoApp
  365.